import request from '@/utils/request'

// 查询course_train列表
export function listCourse_train(query) {
    return request({
        url: '/course/course_train/list',
        method: 'get',
        params: query
    })
}

// 查询course_train详细
export function getCourse_train(id) {
    return request({
        url: '/course/course_train/' + id,
        method: 'get'
    })
}

// 新增course_train
export function addCourse_train(data) {
    return request({
        url: '/course/course_train',
        method: 'post',
        data: data
    })
}

// 修改course_train
export function updateCourse_train(data) {
    return request({
        url: '/course/course_train',
        method: 'put',
        data: data
    })
}

// 删除course_train
export function delCourse_train(id) {
    return request({
        url: '/course/course_train/' + id,
        method: 'delete'
    })
}
